package com.yanqu.road.entity.autodata.chuhan.data;

import java.util.Objects;

public class CrossChuHanTeamArrive {

    private long userId;
    private int teamId;
    private long time;

    public CrossChuHanTeamArrive() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CrossChuHanTeamArrive arrive = (CrossChuHanTeamArrive) o;
        return userId == arrive.userId &&
                teamId == arrive.teamId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, teamId);
    }

    public CrossChuHanTeamArrive(long userId, int teamId, long time) {
        this.userId = userId;
        this.teamId = teamId;
        this.time = time;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
